#ifndef WEBCONTAINER_H
#define WEBCONTAINER_H
#include "webview.h"
#include <QFrame>

class WebPage;

class WebContainer : public QFrame
{
    Q_OBJECT

public:
    WebContainer(WebPage* page, QWidget* parent = nullptr);
    WebContainer(WebView::CreateWindowFunction cwf, WebPage* page, QWidget* parent = nullptr);
    ~WebContainer() = default;

    WebView* webView() const { return web_view_; }
    void exitFullScreen();

private:
    WebView* web_view_;
    Qt::WindowStates window_state_ = Qt::WindowNoState;
};

#endif // WEBCONTAINER_H
